//
//  XMVideoLevelSetTableViewCell.m
//  XunMi
//
//  Created by MacBook on 2024/5/8.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMVideoLevelSetTableViewCell.h"
#import "XMVideoLevelModel.h"

@interface XMVideoLevelSetTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *levelLa;
@property (weak, nonatomic) IBOutlet UILabel *timeLa;
@property (weak, nonatomic) IBOutlet UIButton *selButton;


@end

@implementation XMVideoLevelSetTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setModel:(XMVideoLevelTable *)model {
    _model = model;
    self.levelLa.text = model.label;
    self.timeLa.text = model.price;
    if (model.state == 0) {
        [self.selButton setImage:kGetImage(@"videolevel_d") forState:UIControlStateNormal];
    } else if (model.state == 1) {
        [self.selButton setImage:kGetImage(@"videolevel_n") forState:UIControlStateNormal];
    } else if (model.state == 2) {
        [self.selButton setImage:kGetImage(@"videolevel_s") forState:UIControlStateNormal];
    }
}

@end
